package cn.edu.hqu.cst.android.hxy.e3;

import android.view.View;
import android.widget.TextView;

public class OuterClickListener implements View.OnClickListener {
    private final MainActivity activity;

    public OuterClickListener(MainActivity activity) {
        this.activity = activity;
    }

    @Override
    public void onClick(View v) {
        TextView tv = activity.findViewById(R.id.tv_method);
        tv.setText("外部类处理点击事件");
    }
}
